﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using TotalSystems.Web.Services.Store;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using TotalSystems.DataAccess;
using TotalSystems.Store.Views.BaseInfo;
using System.ServiceModel.DomainServices.Client;
using GalaSoft.MvvmLight;
using TotalSystems.Core.Infrastructure;

namespace TotalSystems.Store.ViewModels.BaseInfo
{
    public class RegimentationStuff_VM : ViewModelBase
    {
        RegimentationStuffContext _Context = new RegimentationStuffContext();
        #region Constractor

        public RegimentationStuff_VM()
        {
            _Context.Load(_Context.GetRegimentationStuffQuery(), OnGetRegimentationStuffQueryCompleted, null);
        }

        #endregion Defenition

        //BaseDefenitionTreeViewBuilder<STR_RegimentationStuff> TreeViewBuilder = new BaseDefenitionTreeViewBuilder<STR_RegimentationStuff>();
      
        #region 



        #endregion

        #region Propertis

        private ObservableCollection<STR_RegimentationStuff> _RegimentationStuffEntitys;
        public ObservableCollection<STR_RegimentationStuff> RegimentationStuffEntitys
        {
            get { return _RegimentationStuffEntitys; }
            set
            {
                _RegimentationStuffEntitys = value;
                RaisePropertyChanged("RegimentationStuffEntitys");
            }
        }

        #endregion


        #region 

        private void  OnGetRegimentationStuffQueryCompleted(LoadOperation<STR_RegimentationStuff> op)
        {
            RegimentationStuffEntitys = new ObservableCollection<STR_RegimentationStuff>(_Context.STR_RegimentationStuffs);



        }



        #endregion
    }
}
